package com.project.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 验收材料明细表
 * @TableName acceptance_items
 */
@TableName(value ="acceptance_items")
@Data
public class AcceptanceItems extends BaseEntity {
    /**
     * 验收明细ID
     */
    @TableId(type = IdType.AUTO)
    private Integer itemId;

    /**
     * 关联验收主表ID
     */
    @TableField(value = "acceptance_id")
    private Integer acceptanceId;

    /**
     * 材料ID，关联 materials.material_id
     */
    @TableField(value = "material_id")
    private Integer materialId;

    /**
     * 验收数量
     */
    @TableField(value = "quantity")
    private BigDecimal quantity;

    /**
     * 是否合格：0不合格，1合格
     */
    @TableField(value = "is_qualified")
    private Integer isQualified;

    /**
     * 修改时间
     */
    @TableField(exist = false)
    private LocalDateTime updateTime;

    /**
     * 创建人
     */
    @TableField(exist = false)
    private Integer createBy;

    /**
     * 修改人
     */
    @TableField(exist = false)
    private Integer updateBy;
}